package com.Logistics.pddispatch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 定时任务日志
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("schedule_job_log")
public class ScheduleJobLog implements Serializable {
    private static final long serialVersionUID = -3605797890923171228L;
    @TableId(value = "id", type = IdType.NONE)
    private String id; // id (primary key)
    private String job_id; // 任务id
    private String bean_name; // spring bean名称
    private String params; // 参数
    private Integer status; // 任务状态 (0：失败, 1：成功)
    private String error; // 失败信息
    private Integer times; // 耗时(单位：毫秒)
    private Date create_date; // 创建时间


}
